import request from '@/utils/request'

// 获取图形验证的接口
export function getImageUrl() { 
    return request({
        url: '/captcha/image',
        method: 'GET'
    })
}

// 获取手机号验证码
export function getIphoneVerify(form) {
    return request({
        url: '/captcha/sendSmsCaptcha',
        method: 'post',
        data: {
            form
        }
    })
}
 
// 登录接口
export function getLogin(form) {
    return request({
        url: '/passport/login',
        method: 'post',
        data: {
            form
        }
    })
}